home *** CD-ROM | disk | FTP | other *** search
- /*
- decode_telnet.c
-
- Telnet.
-
- Copyright (c) 2000 Dug Song <dugsong@monkey.org>
-
- $Id: decode_telnet.c,v 1.1 2000/05/16 17:31:14 dugsong Exp $
- */
-
- #include <sys/types.h>
- #include <stdio.h>
- #include <string.h>
- #include "options.h"
- #include "decode.h"
-
- int
- decode_telnet(u_char *buf, int len)
- {
- if (!strip_telopts(buf, len))
- return (0);
-
- if (strip_lines(buf, Opt_lines) < 2)
- return (0);
-
- strlcpy(Buf, buf, sizeof(Buf));
-
- return (strlen(Buf));
- }
-
-